x.onsecond - Timed
Called every second.
#Firmware/v310
One-second periodic, calling repeatedly if it needs to catch up.
function my_second(utc, secalive)
-- do some work
end
x.onsecond = my_second
Introduced in #Firmware/v220
The callback x.onsecond
would be called, and a delay of 1 second would wait before calling again.
function my_second()
-- do some work
end
x.onsecond = my_second